package com.goudan.rabbitmq.demo.pojo;

import com.alibaba.fastjson.JSON;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 * @ClassName PushMsg
 * @Description Push
 * @Author lizejiao
 * @Date 2021/9/7 3:42 下午
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
public class PushMsg implements Serializable {

    // 标题
    private String title;
    // 摘要
    private String summary;
    // 跳转url
    private String url;
    // 设备id
    private List<String> machineId;

    public String toJson() {
        return JSON.toJSONString(this);
    }
}
